package good;

/**
 *  桥模式是将变化分类。
 *  不同的变化 分为一个 接口。 接口小而完备。单一职责
 *
 *
 * @author GaoXi
 * @date 2021/6/9 20:05
 */
public class Client {

    public static void main(String[] args) {
        MacBasicFunction macBasicFunction = new MacBasicFunction();
        //mac端 两个版本
        PerfectMessager perfectMessager = new PerfectMessager(macBasicFunction);
        SimpleMessager simpleMessager = new SimpleMessager(macBasicFunction);

        WindowsBasicFunction windowsBasicFunction = new WindowsBasicFunction();
        //windows端
        PerfectMessager perfectMessager1 = new PerfectMessager(windowsBasicFunction);
        SimpleMessager simpleMessager1 = new SimpleMessager(windowsBasicFunction);

        //运行时绑定
    }
}
